package com.zijie.order.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zijie.goods.model.Goods;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;

@TableName("`order_item`")
@Getter
@Setter
public class OrderItem {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    private String orderId;
    private Integer goodId;

    private BigDecimal dealPrice;//成交价格
    private Integer count;//数量
    private String goodName;//商品名称

    private String goodPic;

    private String goodDesc;//商品备注

    @TableField(exist = false)
    private Order order;
    @TableField(exist = false)
    private Goods good;



}